export default {
   currentMonthDays(year,month) {
      // const date = new Date();
      // const currentMonth = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
      // const currentYear = date.getFullYear();
      const currentMonthDays = new Date(year, month, 0).getDate();
      const currentMonthArr = [];
      for (let day = 1; day <= currentMonthDays; day++) {
          let dateItem = year + "-" + month + "-" + (day < 10 ? '0' + day : day)
          currentMonthArr.push(dateItem)
      }
      return currentMonthArr;
  },
}
